package com.atguigu.meinian.mapper;

import com.atguigu.meinian.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author zbystart
 * @create 2021-06-23 9:01
 */
public interface OrdersettingMapper {

    void insertOrdersetting(@Param("list") List<OrderSetting> list);

    void deleteOrdersettingByDate(@Param("dates") List<Date> dates);

    List<OrderSetting> selectOrdersettingByMonth(@Param("beginDate") Date beginDate, @Param("endDate") Date endDate);

    void updateNumberByDate(@Param("orderDate") String orderDate, @Param("number") Integer number);

    OrderSetting selectOrdersettingByDate(@Param("orderDate") String orderDate);

    void deletePrevYearOrdersettingInfo(@Param("prevYear") int prevYear);

    OrderSetting selectOrdersettingCount(Date date);

    int updateNUmberAndReservationsByDate(Date date);
}
